import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/Home.vue')
  },
  {
    path: '/backtopone',
    name: 'backtopone',
    component: () => import('../views/BackTopOne.vue')
  },
  {
    path: '/backtoptwo',
    name: 'backtoptwo',
    component: () => import('../views/BackTopTwo.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/Login.vue')
  },
  {
    path: '/testlogin',
    name: 'testlogin',
    component: () => import('../views/test.vue')
  },
  {
    path: '/numlogin',
    name: 'numlogin',
    component: () => import('../views/numlogin.vue')
  },
]


   const router = new VueRouter({
     mode: 'history',
    base: process.env.BASE_URL,
      routes
})

export default router
